package com.zwt;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * 可以使用@EnableEurekaClient注解代替@EnableDiscoveryClient
 * 在spring cloud中服务组件有多种选择 @EnableDiscoveryClient为各种服务组件提供了支持
 * @EnableEurekaClient 只能与Eureka配合工作
 */
@SpringBootApplication
@EnableEurekaClient
@MapperScan("com.zwt.dao")
@EnableTransactionManagement
public class BaseServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(BaseServerApplication.class, args);
		System.out.println("base server 启动了 端口号8081");
	}
}
